<script setup lang="ts">
import { tanszhen } from "@/utils/util1";
import Test from "./components/Test.vue";
onMounted(() => {
  console.log("hello world");
  tanszhen();
});
const msg = ref("aaaaaaaaaaaaaa");
watchEffect((cleanUp) => {
  console.log(msg.value, "msg.value");
  const timer = setTimeout(() => {
    // alert("执行了");
  }, 1000);
  cleanUp(() => {
    clearTimeout(timer);
  });
});
</script>

<template>
  <div>
    <p>{{ msg }}</p>
    <input type="text" v-model="msg" />
    <Test :msg="123123" mingzi="奥赛发塞缝" />
  </div>
</template>

<style scoped></style>
